<?php /* Smarty version 2.6.16, created on 2013-08-28 12:20:24
         compiled from ../templates/admin/tradecategories/addtradecategory.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'ucfirst', '../templates/admin/tradecategories/addtradecategory.tpl', 19, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_start'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php if ($_GET['pid']): ?>
    <?php echo '<script src="';  echo $this->_tpl_vars['siteroot'];  echo '/includes/js/admin/addjobtype.js" type="text/javascript"></script>'; ?>

<?php else: ?>
	<?php echo '<script src="';  echo $this->_tpl_vars['siteroot'];  echo '/includes/js/admin/addtrade_cat.js" type="text/javascript"></script>'; ?>

<?php endif; ?>    
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_end'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

 <div class="contain">
 
      <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['left_menu'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
      
      <div class="right_contain">
        
         <div class="heading_box"><?php if ($_GET['pid']): ?>Add Job Type for "<?php echo ((is_array($_tmp=$this->_tpl_vars['parentArray']['trade_category'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
"<?php else: ?>Add Trade Category<?php endif; ?></div>
         <div class="whitebox">
         <!--Message Div Start-->
         <?php if ($this->_tpl_vars['msg']): ?>
         <div class="masg_div">
           <?php echo $this->_tpl_vars['msg']; ?>

         </div>
         <?php endif; ?>
         <!--Message Div End-->
         
         <form name="frmFaq" id="frmFaq" action="" method="post">
         
         <div style="min-height:250px;">
          <!--Form Contain start-->
           
           <div class="form_fieldbox">
             <dl>
              <dt><?php if ($_GET['pid']): ?>Job Type <?php else: ?>Cateogry Name<?php endif; ?>:</dt>
              <dd><input type="text" class="input" name="cat_name" id="cat_name" value="<?php echo $_POST['cat_name']; ?>
"/></dd>
              <div class="clear"></div>
             </dl>
             <div class="clear"></div>
             <dl>
              <dt>Description: <span class="error">*</span></dt>
              <dd><?php 
             	include_once(INCLUDE_FCKEDITOR);
                $sBasePath 			= 	$_SERVER[ 'PHP_SELF' ] ;
                $sBasePath			=	FCKEDITOR_BASEPATH;
                $oFCKeditor 		= 	new FCKeditor('description');
                $oFCKeditor->BasePath 	= 	$sBasePath;
                $oFCKeditor->Height = '500' ;
                $oFCKeditor->Width = '650' ;
                $oFCKeditor->Value	=	$post['description'];						
                $oFCKeditor->Create();
               ?>
              </dd>
              <div class="clear"></div>
             </dl>
            
              <div class="clear"></div>
             </dl>
            </div>
            
            <!--Form Contain end--> 
          
           <!--Button here start-->
           <div>
            <span><input type="submit" class="admin_btn" value="Submit" name="addtrade_btn" id="addtrade_btn" /></span>
            <span><input type="button" class="admin_btn" value="Cancel"  <?php if ($_GET['pid']): ?> onclick="window.location='<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=tradecategories&pid=<?php echo $_GET['pid']; ?>
&page=<?php echo $_GET['page']; ?>
';" <?php else: ?> onclick="window.location='<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=tradecategories&page=<?php echo $_GET['page']; ?>
';" <?php endif; ?> /></span>
           </div>
            <!--Button here end-->
  
         </div>
         </form>
         
         </div>
        </div>
      
      
      <!--right_contain end-->
      <div class="clear"></div>
    </div>
    
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['footer'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>